﻿@model Bibilioteca.Models.TipoMaterial

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@if (Model.Id != 0)
{ 
    using (Html.BeginForm()) {
        @Html.ValidationSummary(true)

        <fieldset>
            <legend>TipoMaterial</legend>

            @Html.HiddenFor(model => model.Id)

            <div class="editor-label">
                @Html.LabelFor(model => model.Nombre)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Nombre)
                @Html.ValidationMessageFor(model => model.Nombre)
            </div>

            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    }
}
else
{ 
     <p>Este usuario no existe </p>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
    
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
